package com.ggs.starbug.service;

import com.fasterxml.jackson.core.JsonProcessingException;
import com.ggs.starbug.entity.TimerTask;
import com.baomidou.mybatisplus.extension.service.IService;

/**
 * <p>
 * 服务类
 * </p>
 *
 * @author Starbug
 * @since 2021-12-27
 */
public interface ITimerTaskService extends IService<TimerTask> {

    TimerTask addTimerTask(TimerTask timerTask);

    boolean deleteTimerTask(Long id);

    boolean updateTimerTask(TimerTask timerTask);

    boolean addAndTTLTimeQueue(TimerTask timerTask, String ttlTime);

}
